CXXFLAGS=-std=c++17 -g
LDFLAGS=-lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi

# Xxf86vm: X11 XFree86 video mode extension library
# apt install libxxf86vm-dev

# Xi: X11 Input extension library
# apt install libxi-dev

.PHONY: all

all: build/draw_a_triangle

build/draw_a_triangle: draw_a_triangle.cpp
	mkdir -p build
	g++ $(CXXFLAGS) -o ./build/draw_a_triangle draw_a_triangle.cpp $(LDFLAGS)

test: build/draw_a_triangle
	./build/draw_a_triangle


clean:
	rm -rf build
